#include "comm.hpp"

int main()
{
    int msgid = Message_Queue::creat();
    std::cout << "申请消息队列成功" << std::endl;
    sleep(5);
    msqid_ds buf;
    Message_Queue::state(msgid, &buf);
    std::cout << "队列最大字节数: " << buf.msg_qbytes << std::endl;
    sleep(5);
    Message_Queue::free(msgid);
    std::cout << "销毁消息队列成功" << std::endl;
    return 0;
}